package com.example.mongo.dto;

import lombok.Data;
import org.springframework.data.annotation.Id;


@Data
public class User {

    @Id
    private Long userId;
    private String userName;

    public User(Long userId, String userName) {
        this.userId = userId;
        this.userName = userName;
    }
}
